package com.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张杰
 * Date: 2022-07-26
 * Time: 20:19
 */

@Component
public class BeanScope1 {

    @Autowired
    private User user3;
    public User getUser () {
        User user = user3;
        user.setName("悟空");
        return user;
    }
}
